package org.dromara.erp.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 进出明细对象 erp_goods_in_out_info
 *
 * @author Mr Lei
 * @date 2024-06-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("erp_goods_in_out_info")
public class ErpGoodsInOutInfo extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 模块名称
     */
    private String moduleName;

    /**
     * 订单名称
     */
    private String orderName;

    /**
     * 分类
     */
    private Long cateId;

    /**
     * 材料名称
     */
    private Long goodsId;

    /**
     * 原材料规格
     */
    private Long goodsSpecId;

    /**
     * 原库存
     */
    private BigDecimal stock;

    /**
     * 数量
     */
    private BigDecimal amount;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 小计
     */
    private BigDecimal money;

    /**
     * 说明
     */
    private String remark;
    /*别名*/
    @TableField(exist = false)
    private String cateName;
    @TableField(exist = false)
    private String goodsName;
    @TableField(exist = false)
    private String specName;
    @TableField(exist = false)
    private String updateName;
}
